#pragma once

class Business;

class Cancellation
{
public:
	Cancellation(
		Business* business,
		int businessId,
		int contract,
		int cancelLocalId,
		int orderLocalId,
		char const* systemNo)
	:m_business(business),
	m_businessId(businessId),
	m_contract(contract),
	m_cancelLocalId(cancelLocalId),
	m_orderLocalId(orderLocalId)
	{
		strcpy_s(m_systemNo,systemNo);
	}

	typedef UINT KeyType;
	int GetKey() const {return m_cancelLocalId;}

	Business* GetBusiness() const {return m_business;}
	int GetBusinessId() const { return m_businessId; }
	int GetContract() const {return m_contract;}
	int GetCancelLocalId() const { return m_cancelLocalId; }
	int GetOrderLocalId() const {return m_orderLocalId;}
	char const* GetSystemNo() const {return m_systemNo;}

private:
	Business* m_business;
	int m_businessId;
	int m_contract;
	int m_cancelLocalId;
	int m_orderLocalId;
	char m_systemNo[50];
};
